package com.hl.service;

import com.hl.mapper.SystemUserMapper;
import com.hl.pojo.SystemUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemUserServiceImpl implements SystemUserService{
    @Autowired
    private SystemUserMapper mapper;
    @Override
    public Integer add(SystemUser systemUser) {
        return mapper.add(systemUser);
    }

    @Override
    public SystemUser findByUsername(String username) {
        return mapper.findByUsername(username);
    }

    @Override
    public SystemUser findByPhoneNumber(String phoneNumber) {
        return mapper.findByPhoneNumber(phoneNumber);
    }

    @Override
    public SystemUser findById(Integer id) {
        return mapper.findById(id);
    }
}
